import type { Login } from "@/api/interface";
import $http from "@/api";

const login = (params: Login.ReqLoginForm) => {
  return $http.post<Login.ResLogin>("/login", params, {
    headers: { "Content-Type": "application/json" },
  });
};
